using UnityEngine.EventSystems;
/// <summary>
/// UGUI收集接口
/// </summary>
public interface IHFCollectUGUI
{
    /// <summary>
    /// 收集UI组件
    /// </summary>
    /// <typeparam name="T">UI组件类型</typeparam>
    void CollectUICtrls<T>() where T : ISF_UIBehaviour;
    /// <summary>
    /// 查询指定名称UI组件
    /// </summary>
    /// <typeparam name="T">UI组件类型</typeparam>
    /// <param name="_name">UI组件名称</param>
    /// <returns>UI组件</returns>
    T FindUICtrlByName<T>(string _name) where T : ISF_UIBehaviour;
    /// <summary>
    /// 查询指定名称组件【组件类型是指定类型或父类型】
    /// </summary>
    /// <typeparam name="T">组件类型</typeparam>
    /// <param name="_name">组件名称</param>
    /// <returns>组件</returns>
    T FindUICtrlByNameIsSelfOrParent<T>(string _name) where T : ISF_UIBehaviour;
}
